<?php
/**
 * Notes:
 * Created by PhpStorm.
 * Author: TS
 * Date: 2019/10/10
 * Time: 16:42
 */

namespace app\index\controller;


use app\model\Chat;

class UserChat
{
    public function getChat(){
        $id = getNowUserId();
        $chat = Chat::where('user_id','=',$id)->select();
        return res(1,'',$chat);
    }

}